package com.start.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.start.admin.entity.StartSysMenuDataRules;
import com.start.admin.mappers.SysMenuDataRulesMapper;
import com.start.admin.service.StartSysMenuDataRulesService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StartSysMenuDataRulesServiceImpl extends ServiceImpl<SysMenuDataRulesMapper, StartSysMenuDataRules> implements StartSysMenuDataRulesService {
    @Override
    public List<StartSysMenuDataRules> listByMenuId(String menuId) {
        LambdaQueryWrapper<StartSysMenuDataRules> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(StartSysMenuDataRules::getMenuId, menuId);
        return list(lambdaQueryWrapper);

    }
}
